﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UtilZ.Dotnet.Ex.DataStruct
{
    /// <summary>
    /// Dictionary自定义类
    /// </summary>
    /// <typeparam name="TKey">字典中的键的类型</typeparam>
    /// <typeparam name="TValue">字典中的值的类型</typeparam>
    [Serializable]
    public class DictionaryZ<TKey, TValue> : Dictionary<TKey, TValue>
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public DictionaryZ()
            : base()
        {

        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dictionary">System.Collections.Generic.IDictionary，它的元素被复制到新的 System.Collections.Generic.Dictionary中</param>
        public DictionaryZ(IDictionary<TKey, TValue> dictionary)
            : base(dictionary)
        {
            
        }

        /// <summary>
        /// 获取可用于同步对DictionaryEx的访问的对象。
        /// </summary>
        public readonly object SyncRoot = new object();
    }
}
